package com.leetcode.hot100;

/**
 * @BelongsProject: LeetCode
 * @BelongsPackage: com.leetcode.hot100
 * @Author: lei
 * @CreateTime: 2024-03-23  19:00
 * @Description: TODO
 * @Version: 1.0
 */
public class 统计桌面上的不同数字 {
    public static void main(String[] args) {
        System.out.println(distinctIntegers(5));
    }

    public static int distinctIntegers(int n) {
        return Math.max(n - 1, 1);
    }
}
